:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --warning-color: #FF5722;
    --background-dark: #1a1a2e;
    --background-light: #16213e;
    --text-light: #ffffff;
    --text-dark: #333333;
    --star-color: #fff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    height: 100%;
    overflow-y: auto;
}

html {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 增强iOS滚动体验 */
}

#app {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.game-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 增强iOS滚动体验 */
}

.game-view.active {
    display: block;
    overflow-y: auto;
}

/* 欢迎界面样式 */
.space-station {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.space-station h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #88b04b;
}

/* 欢迎消息动画样式 */
.welcome-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #9bb7d4;
}

/* 知情同意书上传界面 */
.night {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom, #0a0a2a, #000);
    overflow: hidden;
}

.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: shooting-star 6s linear infinite;
    opacity: 0;
    transform-origin: center;
    filter: blur(0.5px);
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    height: 1px;
    background: linear-gradient(to left, 
        rgba(255,255,255,0.8) 0%,
        rgba(255,255,255,0.6) 20%,
        rgba(255,255,255,0.4) 40%,
        rgba(255,255,255,0.2) 60%,
        rgba(255,255,255,0) 100%);
    width: 50px;
}

@keyframes shooting-star {
    0% {
        transform: translate(-5%, 105%) rotate(35deg) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0%, 100%) rotate(35deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(95%, 0%) rotate(35deg) scale(1);
    }
    100% {
        transform: translate(100%, -5%) rotate(35deg) scale(0);
        opacity: 0;
    }
}

.consent-container {
    max-width: 95%;
    width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.consent-upload {
    background-color: rgba(20, 20, 50, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(136, 176, 75, 0.2);
    width: 100%;
}

.upload-area {
    margin-bottom: 20px;
}

.portal-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.portal-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(136, 176, 75, 0.5);
}

/* 上传缩略图样式 */
.uploaded-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(136, 176, 75, 0.5);
}

.thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #88b04b;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* 补给地址表单样式 */
/* 删除不再需要的supply-address-form样式 */

.file-upload-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.file-upload-area {
    width: 100%;
    min-height: 200px;
    border: 2px dashed #88b04b;
    border-radius: 10px;
    background-color: rgba(20, 20, 50, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area.dragover {
    background-color: rgba(136, 176, 75, 0.1);
    border-color: #9bb7d4;
}

.file-upload-area .upload-icon {
    font-size: 40px;
    color: #88b04b;
    margin-bottom: 10px;
}

.file-upload-area .upload-text {
    color: #9bb7d4;
    text-align: center;
    margin-bottom: 10px;
}

.file-upload-area .upload-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    text-align: center;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.uploaded-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.uploaded-file-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #88b04b;
}

.uploaded-file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-file-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.uploaded-file-item .remove-file:hover {
    background-color: rgb(220, 53, 69);
    transform: scale(1.1);
}

.upload-progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.3);
}

.upload-progress-bar {
    height: 100%;
    background-color: #88b04b;
    transition: width 0.3s ease;
}

@media (max-width: 576px) {
    .file-upload-area {
        min-height: 150px;
    }
    
    .uploaded-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .file-upload-area .upload-icon {
        font-size: 30px;
    }
    
    .file-upload-area .upload-text {
        font-size: 0.9em;
    }
    
    .file-upload-area .upload-hint {
        font-size: 0.8em;
    }
}

.help-btn {
    background-color: #88b04b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.help-btn:hover::before {
    left: 100%;
}

.help-btn:hover {
    background-color: #7aa43a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.help-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 添加研究助理界面 */
.contact-assistant {
    background-color: rgba(20, 20, 50, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.qr-code {
    margin-bottom: 20px;
}

.qr-code img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(136, 176, 75, 0.5);
}

/* 太空舱界面 */
.space-capsule {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('../capsule-bg.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.space-capsule .welcome-message {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
}

.space-capsule h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #88b04b;
}

.coupon-card {
    background-color: rgba(20, 20, 50, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.coupon-image {
    margin-bottom: 20px;
}

.coupon-image img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(136, 176, 75, 0.5);
}

.get-coupon-btn {
    background-color: #88b04b;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.get-coupon-btn:hover {
    background-color: #6a8a3a;
}

/* 能量包确认界面 */
.energy-confirm {
    background-color: rgba(20, 20, 50, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.energy-image {
    margin-bottom: 20px;
}

.energy-image img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(136, 176, 75, 0.5);
}

.energy-input-container {
    margin: 20px 0;
}

.confirm-energy-btn {
    background-color: #88b04b;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirm-energy-btn:hover {
    background-color: #6a8a3a;
}

/* 驾驶舱界面 */
.cockpit-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom, #0a0a2a, #000);
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 80px;
    overflow-y: visible;
}

/* 驾驶舱标题 */
.cockpit-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.cockpit-header h1 {
    color: #88b04b;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(136, 176, 75, 0.5);
}

.cockpit-header .subtitle {
    color: #9bb7d4;
    font-size: 16px;
}

/* 驾驶舱区域统一宽度 */
.progress-info,
.cockpit-message,
.control-buttons {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 驾驶舱提示信息 - 调整为与进度条区域一致 */
.cockpit-message {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #88b04b;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(136, 176, 75, 0.2);
}

/* 信息内容样式 */
.cockpit-message .message-content {
    color: #fff;
    font-size: 16px;
}

.cockpit-message .message-content p {
    margin: 0;
}

/* 控制按钮容器样式 */
.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0;
}

/* 按钮基础样式 */
.cockpit-btn {
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(50% - 15px);
    max-width: 200px;
    height: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cockpit-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.cockpit-btn span {
    display: block;
    text-align: center;
}

/* 启动引擎按钮样式 */
.launch-btn {
    background-color: #88b04b !important;
    color: #fff !important;
    border: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    animation: gentle-pulse 2s infinite !important;
}

@keyframes gentle-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(136, 176, 75, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 5px rgba(136, 176, 75, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(136, 176, 75, 0.7);
    }
}

/* 联系基地按钮样式 */
.call-btn {
    background-color: #4b88b0 !important;
    color: #fff !important;
    border: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.call-btn:hover {
    background-color: #3a6b8c !important;
    transform: scale(1.02);
}

/* 航程日记按钮样式 */
.checkin-btn {
    background-color: #0f4c81 !important;  /* 深蓝色，代表记录 */
    color: #fff !important;
    border: none !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.checkin-btn:hover {
    background-color: #0a3a63 !important;
    transform: scale(1.02);
}

/* 巡检随访按钮样式 */
.followup-btn {
    background-color: #ffc107 !important;  /* 金黄色，代表巡检 */
    color: #000 !important;
    border: none !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.followup-btn:hover {
    background-color: #e0a800 !important;
    transform: scale(1.02);
}

/* 星语频道按钮样式 */
.channels-btn {
    background-color: #a7e6d7 !important;  /* 浅绿色，代表通讯 */
    color: #000 !important;
    border: none !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.channels-btn:hover {
    background-color: #98d7c2 !important;
    transform: scale(1.02);
}

/* 量表工具按钮样式 */
.scales-btn {
    background-color: #6667ab !important;  /* 浅紫色，代表工具 */
    color: #fff !important;
    border: none !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.scales-btn:hover {
    background-color: #91a8d0 !important;
    transform: scale(1.02);
}

/* 禁用状态统一样式 */
.cockpit-btn.disabled {
    background-color: #6c757d !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
    animation: none !important;
    text-shadow: none !important;
    border: none !important;
}

/* 启动引擎按钮特殊状态 */
.launch-btn.countdown {
    background-color: #ffc107 !important;
    animation: none !important;
}

.launch-btn.abort {
    background-color: #dc3545 !important;
    animation: none !important;
    color: #fff !important;
    font-weight: normal !important;
    font-size: 16px !important;
}

.launch-btn.abort i {
    font-size: 24px !important;
    margin-bottom: 8px !important;
}

.launch-btn.countdown:hover {
    background-color: #e0a800 !important;
}

.launch-btn.abort:hover {
    background-color: #c82333 !important;
}

/* 流星背景 */
.shooting-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 流星效果 */
.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: shooting-star 6s linear infinite;
    opacity: 0;
    transform-origin: center;
    filter: blur(0.5px);
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    height: 1px;
    background: linear-gradient(to left, 
        rgba(255,255,255,0.8) 0%,
        rgba(255,255,255,0.6) 20%,
        rgba(255,255,255,0.4) 40%,
        rgba(255,255,255,0.2) 60%,
        rgba(255,255,255,0) 100%);
    width: 50px;
}

@keyframes shooting-star {
    0% {
        transform: translate(-5%, 105%) rotate(35deg) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0%, 100%) rotate(35deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(95%, 0%) rotate(35deg) scale(1);
    }
    100% {
        transform: translate(100%, -5%) rotate(35deg) scale(0);
        opacity: 0;
    }
}

/* 闪烁星星效果 */
.twinkling-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
}

.star.small {
    width: 1px;
    height: 1px;
    animation: twinkle 4s infinite ease-in-out;
}

.star.medium {
    width: 2px;
    height: 2px;
    animation: twinkle 6s infinite ease-in-out;
}

.star.large {
    width: 3px;
    height: 3px;
    animation: twinkle 8s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 4px #fff, 0 0 8px #fff;
    }
}

/* 飞船参数信息 */
.ship-params {
    margin-bottom: 20px;
}

.param-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #88b04b;
}

.param-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #88b04b;
    text-align: center;
}

.param-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.param-label {
    color: #ddd;
}

.param-value {
    color: #88b04b;
    font-weight: bold;
}

/* 目的地照片 */
.destination-container {
    margin-bottom: 30px;
    text-align: center;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.destination-image, .assistant-qr {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
}

.destination-image img, .assistant-qr img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.destination-image p {
    margin-top: 10px;
    color: #88b04b;
    font-weight: bold;
}

/* 星际旅程界面 */
.space-journey {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('../journey-bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.journey-header {
    text-align: center;
    margin-bottom: 20px;
}

.journey-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #88b04b;
}

.cycle-info {
    font-size: 16px;
    color: #ddd;
}

.journey-progress {
    position: relative;
    height: 300px;
    margin-bottom: 30px;
}

.orbit {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(136, 176, 75, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.days-counter {
    position: absolute;
    font-size: 20px;
    color: #88b04b;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    z-index: 2;
}

.checkpoint {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.checkpoint.completed {
    background-color: #88b04b;
    border-color: #fff;
}

.day-number {
    font-size: 12px;
    color: #fff;
}

.mission-planets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.planet {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.planet.completed {
    background-color: #88b04b;
    border-color: #fff;
}

.planet-content {
    text-align: center;
}

.planet-content i {
    font-size: 20px;
    margin-bottom: 5px;
}

.planet-content p {
    font-size: 10px;
}

.week-2 {
    top: 20%;
    left: 20%;
}

.week-4 {
    top: 20%;
    right: 20%;
}

.check-in-section {
    margin-bottom: 20px;
    text-align: center;
}

.check-in-btn {
    background-color: #0f4c81;  /* 深蓝色，代表记录 */
    color: #fff;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(15, 76, 129, 0.5);
}

.check-in-btn:hover {
    background-color: #0a3a63;
    transform: scale(1.05);
}

.check-in-btn.disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.check-in-btn.low-energy {
    background-color: #b04b4b;
}

.btn-content {
    display: flex;
    align-items: center;
}

.btn-content i {
    margin-right: 10px;
}

.time-left {
    margin-left: 10px;
    font-size: 14px;
}

.status-panel {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-item i {
    margin-right: 10px;
    color: #88b04b;
}

.warning-message {
    display: none;
    background-color: rgba(176, 75, 75, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}

.warning-message i {
    color: #b04b4b;
    margin-right: 10px;
}

/* 动画效果 */
.message-highlight {
    animation: highlight 0.3s ease-in-out;
    color: #88b04b;
}

.message-fade {
    animation: fade 0.3s ease-in-out;
}

@keyframes highlight {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .space-station h1 {
        font-size: 20px;
    }

    .welcome-message {
        font-size: 16px;
    }

    .journey-progress {
        height: 250px;
    }

    .checkpoint {
        width: 25px;
        height: 25px;
    }

    .planet {
        width: 50px;
        height: 50px;
    }
    
    .cockpit-container {
        padding-bottom: 100px; /* 确保小屏幕上有足够的滚动空间 */
        overflow-y: auto;
        min-height: 100%;
        height: auto;
    }
    
    .game-view {
        position: relative;
        height: auto;
        overflow-y: auto;
    }
    
    .progress-info,
    .cockpit-message,
    .control-buttons {
        padding: 0 15px;
    }
    
    .journey-progress-bar,
    .cockpit-message {
        padding: 15px;
    }
    
    .cockpit-btn {
        width: 45%;
        font-size: 12px;
        padding: 8px;
        height: 60px;
    }
    
    .cockpit-btn i {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .cockpit-btn span {
        font-size: 12px;
    }
    
    .launch-btn.abort i {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }
    
    .launch-btn.abort span {
        font-size: 12px !important;
    }
    
    .back-to-cockpit-btn {
        font-size: 14px;
        padding: 8px 15px;
    }

    .consent-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .help-icon {
        width: 28px;
        height: 28px;
    }
    
    .button-container .help-btn {
        min-width: 250px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .col-md-3, .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .space-station h1 {
        font-size: 18px;
    }

    .welcome-message {
        font-size: 14px;
    }

    .journey-progress {
        height: 200px;
    }

    .checkpoint {
        width: 20px;
        height: 20px;
    }

    .day-number {
        font-size: 10px;
    }

    .planet {
        width: 40px;
        height: 40px;
    }

    .checkin-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .progress-info,
    .cockpit-message,
    .control-buttons {
        padding: 0 10px;
    }
    
    .journey-progress-bar,
    .cockpit-message {
        padding: 12px;
    }
    
    .cockpit-btn {
        width: 45%;
        font-size: 11px;
        padding: 5px;
        height: 55px;
    }
    
    .cockpit-btn i {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .cockpit-btn span {
        font-size: 11px;
    }
    
    .launch-btn.abort i,
    .launch-btn.abort span {
        font-size: 11px !important;
    }
    
    .launch-btn.abort i {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }
    
    .back-to-cockpit-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 模态框样式 */
.modal-backdrop {
    opacity: 0.7 !important;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #88b04b;
}

.modal-header {
    border-bottom: 1px solid #88b04b;
}

.modal-footer {
    border-top: 1px solid #88b04b;
}

.modal-title {
    color: #88b04b;
}

.modal-body {
    color: #fff;
}

.modal .btn-primary {
    background-color: #88b04b;
    border-color: #88b04b;
}

.modal .btn-primary:hover {
    background-color: #6b8c3a;
    border-color: #6b8c3a;
}

.modal .btn-secondary {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #fff;
}

.modal .btn-secondary:hover {
    background-color: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
}

.modal .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.modal .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 返回驾驶舱按钮 */
.back-to-cockpit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
}

.back-to-cockpit-btn i {
    margin-right: 8px;
}

.back-to-cockpit-btn:hover {
    background-color: rgba(0, 123, 255, 0.2);
}

/* 悬浮返回按钮 */
.back-to-cockpit-btn.floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    padding: 12px 24px;
}

.back-to-cockpit-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* 监视器 */
.monitor-container {
    margin-bottom: 30px;
    text-align: center;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.monitor-screen {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.monitor-screen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.monitor-screen p {
    margin-top: 10px;
    color: #88b04b;
    font-weight: bold;
}

/* 视图通用样式 */
.view-header {
    text-align: center;
    margin-bottom: 20px;
}

.view-header h2 {
    color: #88b04b;
    font-size: 24px;
    margin-bottom: 10px;
}

.view-description {
    color: #ddd;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 能量补给视图 */
.energy-supply-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.supply-section {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #88b04b;
    border-radius: 10px;
    padding: 20px;
}

.supply-section h3 {
    color: #88b04b;
    font-size: 18px;
    margin-bottom: 15px;
}

.address-form .form-group {
    margin-bottom: 15px;
}

.address-form label {
    display: block;
    color: #ddd;
    margin-bottom: 5px;
}

.address-form .form-control {
    width: 100%;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #88b04b;
    border-radius: 5px;
    color: #fff;
}

.submit-address-btn {
    background-color: #88b04b;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 15px;
}

.submit-address-btn:hover {
    background-color: #6a8a3a;
}

.supply-status {
    margin-bottom: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-label {
    color: #ddd;
}

.status-value {
    color: #88b04b;
    font-weight: bold;
}

.tracking-link {
    margin-bottom: 15px;
    text-align: center;
}

.tracking-link a {
    color: #88b04b;
    text-decoration: none;
}

.tracking-link a:hover {
    text-decoration: underline;
}

.confirm-receipt {
    text-align: center;
}

.confirm-receipt-btn {
    background-color: #88b04b;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-receipt-btn:hover {
    background-color: #6a8a3a;
}

/* 每日打卡视图 */
.checkin-calendar {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #88b04b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prev-month-btn, .next-month-btn {
    background-color: transparent;
    border: 1px solid #88b04b;
    color: #88b04b;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-month-btn:hover, .next-month-btn:hover {
    background-color: rgba(136, 176, 75, 0.3);
}

.current-month {
    color: #88b04b;
    font-size: 18px;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day.header {
    color: #88b04b;
    font-weight: bold;
    background-color: rgba(136, 176, 75, 0.2);
}

.calendar-day.empty {
    background-color: transparent;
    cursor: default;
}

.calendar-day.available {
    background-color: rgba(136, 176, 75, 0.1);
    color: #ddd;
}

.calendar-day.available:hover {
    background-color: rgba(136, 176, 75, 0.3);
}

.calendar-day.completed {
    background-color: rgba(136, 176, 75, 0.5);
    color: #fff;
}

.calendar-day.today {
    border: 2px solid #88b04b;
}

.checkin-form {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #88b04b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.checkin-form h3 {
    color: #88b04b;
    font-size: 18px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #ddd;
    margin-bottom: 5px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    color: #ddd;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.form-control {
    width: 100%;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #88b04b;
    border-radius: 5px;
    color: #fff;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.save-checkin-btn, .cancel-checkin-btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.save-checkin-btn {
    background-color: #88b04b;
    color: #000;
    border: none;
}

.save-checkin-btn:hover {
    background-color: #6a8a3a;
}

.cancel-checkin-btn {
    background-color: transparent;
    color: #ddd;
    border: 1px solid #ddd;
}

.cancel-checkin-btn:hover {
    background-color: rgba(221, 221, 221, 0.1);
}

/* 随访视图样式 */
.followup-list {
    margin-top: 20px;
    background-color: rgba(20, 20, 50, 0.8); /* 深色背景，带透明度 */
    border-radius: 10px;
    padding: 15px;
}

.followup-item {
    border: 1px solid rgba(136, 176, 75, 0.5); /* 边框颜色 */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    transition: all 0.3s;
}

.followup-item:last-child {
    margin-bottom: 0;
}

/* 修改 list-group-item 的样式 */
.list-group-item {
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    border: none; /* 移除默认边框 */
    border-radius: 8px; /* 圆角 */
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.list-group-item:hover {
    background-color: rgba(50, 50, 50, 0.9); /* 悬停时的深色背景 */
}

/* 待完成和已完成列表的文字颜色 */
.list-group-item .highlight {
    color: #88b048; /* 重点及标题文字颜色 */
    font-weight: bold; /* 加粗 */
}

.list-group-item {
    color: #fff; /* 默认文字颜色为白色 */
}

.followup-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.followup-day {
    font-size: 18px;
    font-weight: bold;
    color: #88b048; /* 浅色 */
}

.followup-date {
    font-size: 14px;
    color: #fff; /* 浅色 */
}

.followup-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff; /* 浅色 */
}

.followup-status.pending {
    background-color: #ffc107; /* 待完成状态 */
}

.followup-status.completed {
    background-color: #28a745; /* 已完成状态 */
}

.followup-status.disabled {
    background-color: #6c757d; /* 禁用状态 */
    color: #fff; /* 浅色 */
}

.followup-action {
    margin-top: 10px;
}

.complete-followup-btn, .view-followup-btn {
    margin-right: 5px;
    background-color: #88b04b; /* 按钮背景色 */
    color: #fff; /* 按钮文字颜色 */
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.complete-followup-btn:hover, .view-followup-btn:hover {
    background-color: #6a8a3a; /* 悬停时的颜色 */
}

/* 随访表单样式 */
.followup-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.followup-form h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.save-followup-btn, .cancel-followup-btn {
    margin-top: 15px;
    margin-right: 10px;
}

.save-followup-btn {
    background-color: #007bff;
    color: #fff;
}

.save-followup-btn:hover {
    background-color: #0069d9;
}

.cancel-followup-btn {
    background-color: #6c757d;
    color: #fff;
}

.cancel-followup-btn:hover {
    background-color: #5a6268;
}

/* 广播频道视图 */
.broadcast-container {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #88b04b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.broadcast-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.broadcast-message {
    background-color: rgba(136, 176, 75, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-sender {
    color: #88b04b;
    font-weight: bold;
}

.message-time {
    color: #6c757d;
    font-size: 14px;
}

.message-content {
    color: #ddd;
    word-break: break-word;
}

.broadcast-form {
    position: relative;
}

.char-counter {
    position: absolute;
    right: 10px;
    bottom: 50px;
    color: #6c757d;
    font-size: 14px;
}

.send-broadcast-btn {
    background-color: #88b04b;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.send-broadcast-btn:hover {
    background-color: #6a8a3a;
}

/* 点火出发模态框 */
.launch-note {
    color: #ffc107;
    font-size: 14px;
    margin-top: 10px;
}

.exit-warning {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

/* 航程日记视图 */
.diary-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.diary-card {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #88b04b;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.diary-card.today {
    border-color: #88b04b;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7));
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.diary-header h3 {
    color: #88b04b;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(136, 176, 75, 0.3);
}

.edit-diary-btn {
    background-color: transparent;
    border: 1px solid #88b04b;
    color: #88b04b;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-diary-btn:hover {
    background-color: rgba(136, 176, 75, 0.2);
}

.diary-content {
    color: #fff;
}

.empty-diary {
    color: #6c757d;
    text-align: center;
    font-style: italic;
    margin: 0;
}

.diary-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.diary-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.diary-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.diary-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.diary-date {
    color: #88b04b;
    font-weight: bold;
}

.diary-status {
    color: #6c757d;
    font-size: 14px;
}

.diary-summary {
    color: #ddd;
    margin: 0;
}

/* 日记编辑模态框样式 */
.modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid #88b04b;
}

.modal-header {
    border-bottom-color: #88b04b;
}

.modal-footer {
    border-top-color: #88b04b;
}

.form-group label {
    color: #ddd;
    margin-bottom: 8px;
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #88b04b;
    color: #fff;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #88b04b;
    box-shadow: 0 0 0 0.25rem rgba(136, 176, 75, 0.25);
    color: #fff;
}

.btn-group .btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-group .btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

.btn-group .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-group .btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

.btn-check:checked + .btn-outline-success {
    background-color: #28a745;
    color: #fff;
}

.btn-check:checked + .btn-outline-danger {
    background-color: #dc3545;
    color: #fff;
}

.form-check {
    margin-bottom: 8px;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #88b04b;
}

.form-check-input:checked {
    background-color: #88b04b;
    border-color: #88b04b;
}

.form-check-label {
    color: #ddd;
}

.advanced-toggle {
    text-align: center;
}

.advanced-toggle .btn {
    color: #88b04b;
    border-color: #88b04b;
}

.advanced-toggle .btn:hover {
    background-color: rgba(136, 176, 75, 0.2);
}

.advanced-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(136, 176, 75, 0.3);
}

/* 进度条样式 */
.journey-progress-bar {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #88b04b;
    box-shadow: 0 0 20px rgba(136, 176, 75, 0.2);
    margin-bottom: 30px;
}

.progress {
    height: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
    border-radius: 2.5px;
    overflow: visible;
    position: relative;
}

.progress-bar {
    background: #88b04b !important;
    transition: width 0.5s ease-in-out;
    border-radius: 2.5px;
    position: relative;
    z-index: 1;
}

/* 随访标记样式 */
.followup-marker {
    position: absolute;
    width: 4px;
    height: 35px;
    background-color: #ffc107;
    top: -5px;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.followup-marker::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ffc107;
    border: 2px solid #000;
    border-radius: 50%;
    top: -6px;
    left: -4px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    transition: all 0.3s ease;
}

.followup-marker::after {
    content: attr(data-day);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.followup-marker:hover::after {
    opacity: 1;
}

.followup-marker.completed {
    background-color: #28a745;
}

.followup-marker.completed::before {
    background-color: #28a745;
    border-color: #000;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.followup-marker.active {
    background-color: #dc3545;
    animation: pulse 2s infinite;
}

.followup-marker.active::before {
    background-color: #dc3545;
    border-color: #000;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    color: #ddd;
    width: 100%;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #88b04b;
    margin-top: 10px;
}

/* 知情同意书上传界面优化 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(136, 176, 75, 0.3);
    padding-bottom: 10px;
}

.section-header h3 {
    color: #88b04b;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(136, 176, 75, 0.3);
}

.help-icon {
    position: relative;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(136, 176, 75, 0.1);
    transition: all 0.3s ease;
}

.help-icon i {
    color: #88b04b;
    font-size: 16px;
}

.help-icon:hover {
    background-color: rgba(136, 176, 75, 0.3);
    transform: scale(1.1);
}

.help-tooltip {
    position: absolute;
    bottom: -30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.help-icon:hover .help-tooltip {
    opacity: 1;
    visibility: visible;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.button-container .help-btn {
    min-width: 300px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 1px;
}

.button-container .help-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background-color: #7aa43a;
}

.button-container .help-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.button-container .help-btn i {
    margin-right: 10px;
}

/* 表单间距优化 */
.row {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .consent-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .help-icon {
        width: 28px;
        height: 28px;
    }
    
    .button-container .help-btn {
        min-width: 250px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .col-md-3, .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .section-header h3 {
        font-size: 16px;
    }
    
    .help-icon {
        width: 25px;
        height: 25px;
    }
    
    .help-icon i {
        font-size: 14px;
    }
    
    .button-container .help-btn {
        min-width: 220px;
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .consent-upload {
        padding: 15px;
    }
    
    .file-upload-area {
        min-height: 150px;
    }
}

/* 浮动提示样式 */
.floating-tip {
    position: fixed;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(136, 176, 75, 0.5);
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 90%;
}

.floating-tip.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-tip.hide {
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 576px) {
    .floating-tip {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* 改进表单布局，在宽屏上更好看 */
@media (min-width: 992px) {
    .row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* 表单样式 */
.form-label {
    color: #9bb7d4;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(136, 176, 75, 0.5);
    color: #fff;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #88b04b;
    box-shadow: 0 0 0 0.25rem rgba(136, 176, 75, 0.25);
    color: #fff;
}

/* 文件上传区域和表单区域统一宽度 */
.file-upload-container,
.form-group {
    width: 100%;
}

.upload-success-text {
    text-align: center;
    color: #88b04b;
    margin-top: 10px;
    font-weight: bold;
}

.contact-tip {
    font-size: 16px;
    color: #88b04b;
    margin-bottom: 20px;
    cursor: pointer;
}

/* 内嵌行样式 */
.row .row {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.row .col-6 {
    padding-right: 5px;
    padding-left: 5px;
}

/* 修改随访视图的样式 */
.followup-list {
    margin-top: 20px;
    background-color: rgba(20, 20, 50, 0.8); /* 深色背景，带透明度 */
    border-radius: 10px;
    padding: 15px;
}

.followup-item {
    border: 1px solid rgba(136, 176, 75, 0.5); /* 边框颜色 */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    transition: all 0.3s;
}

.followup-item:last-child {
    margin-bottom: 0;
}

/* 修改 list-group-item 的样式 */
.list-group-item {
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    border: none; /* 移除默认边框 */
    border-radius: 8px; /* 圆角 */
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.list-group-item:hover {
    background-color: rgba(50, 50, 50, 0.9); /* 悬停时的深色背景 */
}

.followup-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.followup-day {
    font-size: 18px;
    font-weight: bold;
    color: #88b048; /* 浅色 */
}

.followup-date {
    font-size: 14px;
    color: #fff; /* 浅色 */
}

.followup-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff; /* 浅色 */
}

.followup-status.pending {
    background-color: #ffc107; /* 待完成状态 */
}

.followup-status.completed {
    background-color: #28a745; /* 已完成状态 */
}

.followup-status.disabled {
    background-color: #6c757d; /* 禁用状态 */
    color: #fff; /* 浅色 */
}

.followup-action {
    margin-top: 10px;
}

.complete-followup-btn, .view-followup-btn {
    margin-right: 5px;
    background-color: #88b04b; /* 按钮背景色 */
    color: #fff; /* 按钮文字颜色 */
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.complete-followup-btn:hover, .view-followup-btn:hover {
    background-color: #6a8a3a; /* 悬停时的颜色 */
}

/* 全局滚动设置 */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#app {
    min-height: 100%;
    position: relative;
    overflow-y: visible;
}

.game-view {
    min-height: 100%;
    position: relative;
    overflow-y: visible;
}

.game-view.active {
    display: block;
    overflow-y: visible;
}

.cockpit-container {
    position: relative;
    width: 100%;
    min-height: 100%;
    background: linear-gradient(to bottom, #0a0a2a, #000);
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 80px;
    overflow-y: visible;
}

/* 确保内容可滚动的通用修复 */
.consent-container {
    position: relative;
    overflow: visible;
}

.bottom-link {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* 确保性别和年龄输入框在同一行显示 */
.consent-upload .row .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    padding-left: 5px;
    padding-right: 5px;
}

@media (max-width: 576px) {
    .consent-upload .row .col-6 {
        padding-left: 3px;
        padding-right: 3px;
    }
}

/* 性别选择框样式优化 */
#subjectGender option.placeholder-option {
    color: rgba(255, 255, 255, 0.5);
}

#subjectGender option {
    color: #000;
    background-color: #fff;
}

/* 未选择时的占位符样式 */
#subjectGender:invalid {
    color: rgba(255, 255, 255, 0.5);
}

/* 选择后的文本样式 */
#subjectGender:valid {
    color: #fff;
}

/* 统一输入框字体大小与上传区域文字 */
.consent-upload input.form-control,
.consent-upload select.form-select,
.consent-upload textarea.form-control,
.consent-upload input.form-control::placeholder,
.consent-upload select.form-select::placeholder,
.consent-upload textarea.form-control::placeholder {
    font-size: 16px;
    color: #9bb7d4;
}

.consent-upload input.form-control::placeholder,
.consent-upload select.form-select::placeholder,
.consent-upload textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 确保输入框内的文字与占位符大小一致 */
.consent-upload input.form-control,
.consent-upload select.form-select,
.consent-upload textarea.form-control {
    font-size: 16px;
}

/* 调整按钮容器的间距，使布局更紧凑 */
.consent-upload .button-container {
    margin-top: 10px;
}

/* 调整表单组的下边距，使各元素更紧凑 */
.consent-upload .form-group.mb-3,
.consent-upload .row.g-2.mb-3 {
    margin-bottom: 10px !important;
}

@media (max-width: 576px) {
    .consent-upload input.form-control,
    .consent-upload select.form-select,
    .consent-upload textarea.form-control,
    .consent-upload input.form-control::placeholder,
    .consent-upload select.form-select::placeholder,
    .consent-upload textarea.form-control::placeholder {
        font-size: 14px;
    }
}

.floating-back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(136, 176, 75, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.floating-back-btn:hover {
    transform: scale(1.1);
    background: rgba(136, 176, 75, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-back-btn i {
    font-size: 24px;
}

.floating-back-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(136, 176, 75, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.diary-summary {
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.diary-summary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.diary-summary .edit-hint {
    color: #88b04b;
    font-size: 0.9em;
    opacity: 0.8;
    text-align: right;
}

.diary-summary:hover .edit-hint {
    opacity: 1;
}

.diary-summary p {
    margin-bottom: 0.5rem;
}

.diary-summary p:last-child {
    margin-bottom: 0;
}

.empty-diary-prompt {
    text-align: center;
    padding: 20px;
}

.create-diary-btn {
    background-color: #88b04b;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.create-diary-btn:hover {
    background-color: #6a8a3a;
}

.load-more-btn {
    background-color: rgba(136, 176, 75, 0.2);
    color: #88b04b;
    border: 1px solid #88b04b;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background-color: rgba(136, 176, 75, 0.3);
}

.diary-detail-content {
    color: #fff;
}

/* 日记容器样式优化 */
.diary-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

.diary-card {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #88b04b;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.diary-card.today {
    margin-bottom: 40px;
}

.diary-card.history {
    background: none;
    border: none;
    padding: 0;
}

.diary-header {
    margin-bottom: 20px;
}

.diary-header h3 {
    color: #88b04b;
    font-size: 20px;
    margin: 0;
    text-align: left;
}

/* 历史记录列表样式优化 */
.diary-list {
    width: 100%;
}

.diary-item {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(136, 176, 75, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.diary-item:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(136, 176, 75, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.diary-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(136, 176, 75, 0.2);
}

/* 加载更多按钮样式优化 */
.load-more-container {
    text-align: center;
    margin: 30px 0 60px;
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .diary-container {
        padding: 0 15px;
    }

    .diary-card {
        padding: 15px;
    }

    .diary-item {
        padding: 15px;
    }
}

.history-title {
    color: #88b04b;
    font-size: 20px;
    margin: 40px 0 20px;
    text-align: left;
}

.diary-item .diary-summary {
    background: none;
    padding: 0;
}

.diary-item .diary-summary p {
    color: #ddd;
    margin-bottom: 8px;
}

.diary-item .diary-summary p:last-child {
    margin-bottom: 0;
}

.load-more-btn {
    background-color: rgba(136, 176, 75, 0.1);
    color: #88b04b;
    border: 1px solid #88b04b;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: rgba(136, 176, 75, 0.2);
    transform: translateY(-2px);
}

.load-more-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .history-title {
        margin: 30px 0 15px;
        font-size: 18px;
    }
}

/* 服用记录星星图标样式 */
.diary-date-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dose-stars {
    display: flex;
    gap: 5px;
}

.dose-stars .fa-star {
    font-size: 0.9em;
    color: rgba(255, 215, 0, 0.3); /* 未点亮的星星颜色 */
    transition: all 0.3s ease;
}

.dose-stars .fa-star.active {
    color: #ffd700; /* 点亮的星星颜色 */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.diary-item:hover .dose-stars .fa-star.active {
    transform: scale(1.1);
}

.info-icon {
    color: #88b04b;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-icon:hover {
    transform: scale(1.1);
    color: #9bb7d4;
}

/* 用户信息模态框样式 */
.user-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(136, 176, 75, 0.2);
}

.user-info-list li:last-child {
    border-bottom: none;
}

.user-info-list .label {
    color: #88b04b;
    font-weight: bold;
}

.user-info-list .value {
    color: #9bb7d4;
}

/* 进度条样式优化 */
.progress {
    height: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
    border-radius: 2.5px;
    overflow: visible;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.5));
    transition: width 0.5s ease-in-out;
    border-radius: 2.5px;
    position: relative;
    z-index: 1;
}

.progress-bar.has-diary {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.9));
}

.diary-marker {
    position: absolute;
    width: 4px;
    height: 35px;
    background-color: #007bff;
    top: -5px;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.diary-marker::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border: 2px solid #000;
    border-radius: 50%;
    top: -6px;
    left: -4px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transition: all 0.3s ease;
}

/* 星空背景样式 */
.twinkling-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

.star.small {
    width: 2px;
    height: 2px;
}

.star.medium {
    width: 3px;
    height: 3px;
}

.star.large {
    width: 4px;
    height: 4px;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.shooting-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1),
                0 0 0 8px rgba(255,255,255,0.1);
    animation: shoot 3s infinite;
    opacity: 0;
}

@keyframes shoot {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
} 
